﻿using IGL_Talk_Windows_Desktop.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GalaSoft.MvvmLight;
using ChatLibrary.ChatDTOs;

namespace IGL_Talk_Windows_Desktop.ViewModel
{
    public class MessageViewModel : ViewModelBase
    {
        private MessageModel _message = new MessageModel();

        public Message Message
        {
            get { return _message.Message; }
            set
            {
                _message.Message = value;
                RaisePropertyChanged(() => Message);
            }
        }
        public bool IsNew
        {
            get { return _message.IsNew; }
            set
            {
                _message.IsNew = value;
                RaisePropertyChanged(() => IsNew);
            }
        }
        public bool IsNotification
        {
            get { return _message.IsNotification; }
            set
            {
                _message.IsNotification = value;
                RaisePropertyChanged(() => IsNotification);
            }
        }
        public MessageViewModel(Message msg, bool isNew, bool isNotification)
        {
            _message.Message = msg;
            _message.IsNew = isNew;
            _message.IsNotification = isNotification;
        }
    }
}
